﻿using FlyingEye.DeviceClients;
using FlyingEyeClient.ApplicationServices.SignalRHubs;

namespace FlyingEye
{
    /// <summary>
    /// 应用程序上下文
    /// </summary>
    public class ApplicationContext
    {
        public ApplicationContext()
        {
        }

        private SignalRClient? _signalRClient;

        public SignalRClient SignalRClient
        {
            get { return _signalRClient ?? throw new InvalidOperationException("未设置属性值！"); }
            set { _signalRClient = value; }
        }

        private DeviceManager? _deviceManager;

        public DeviceManager DeviceManager
        {
            get { return _deviceManager ?? throw new InvalidOperationException("未设置属性值！"); }
            set { _deviceManager = value; }
        }


        private string? _resourceId;

        public string ResourceId
        {
            get { return _resourceId ?? throw new InvalidOperationException("未设置属性值！"); }
            set { _resourceId = value; }
        }

    }
}
